package com.baizhi.service.impl;

import com.baizhi.dao.ProvinceDao;
import com.baizhi.entity.Province;
import com.baizhi.service.ProvinceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ProvinceServiceImpl implements ProvinceService {
    @Autowired
    private ProvinceDao provinceDao;

    @Override
    @Transactional(readOnly = true)
    public List<Province> selectAll() {
        return provinceDao.selectAll();
    }
}
